#ifndef IO_H
#define IO_H
#define outl(reg,value) ((*(volatile long *)reg) = value)
#define outh(reg,value) ((*(volatile short *)reg) = value)
#define outb(reg,value) ((*(volatile char *)reg) = value)

#define inl(reg) (*(volatile long *)reg)
#define inh(reg) (*(volatile int *)reg)
#define inb(reg) (*(volatile char *)reg)
#endif